#!/usr/bin/env bash
pid=$(cat pid_bancor.txt)
count=`ps -ef |grep $pid |grep -v "grep" |wc -l`
if [ 0 == $count ];
then
   nohup node ./bancor.js > ./log_bancor.file 2>&1 &
   echo "$!" > ./pid_bancor.txt
else
   echo "process is running"
fi

